﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MakeApproval.aspx.cs" Inherits="CURE.Harmful.MakeApproval" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>无标题页</title>
    <script type="text/javascript">
        function radiovalue() {
            var approval = $("#approvalradio[name='approvalradio']:checked").val();
            //var approval = document.getElementsByName("approvalradio").value;
            //alert(approval);
            document.getElementById("approval").value = approval;
        }
        
    </script>
</head>
<body>
    <div class="pageContent">
        <form id="form1" method="post" action="Handler/ApprovalHandler.ashx" class="pageForm required-validate"
        onsubmit="return validateCallback(this, dialogAjaxDone)">
        <input type="hidden" name="id" value="<%=Mid %>" />
        <input type="hidden" name="action" value="<%=Action %>" />
        <input type="hidden" name="fid" value="<%=Fid %>" />
        
        <input type="hidden" id="approval" name="approval" value="<%=Approvalvalue %>" />
        <input type="hidden" name="page" value="<%=Page1 %>" />
        <div class="pageFormContent" layouth="56">
            <p>
                <label>
                    记录编号：</label>
                <input type="text" name="txtid" size="30" id="txtid"  readonly="readonly"
                    value="<%=Mid %>" />
            </p>
            <p>
                <label>
                    F卡号：</label>
                <input type="text" name="txtDeptName" size="30" id="txtfid"  readonly="readonly"
                    value="<%=Fid %>" />
            </p>
            <p>
                <label>
                    审核结果：</label>
                <input type="radio" id="approvalradio" name="approvalradio" value="0" onchange="radiovalue()" checked="checked" /> 通过
                <input type="radio" id="approvalradio" name="approvalradio" value="1" onchange="radiovalue()" /> 未通过
            </p>
            <p>
                <label>
                    原因：</label>
                <input type="text" name="txtReason" size="30" id="txtreason"  
                    value="<%=Reason %>" />
            </p>
        </div>
                
        <div class="formBar">
            <ul>
                <li>
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit">
                                提交</button></div>
                    </div>
                </li>
                <li>
                    <div class="button">
                        <div class="buttonContent">
                            <button type="reset" class="close">
                                取消</button></div>
                    </div>
                </li>
            </ul>
        </div>
        </form>
    </div>
</body>
</html>
